﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using GTR.News.AdminBLL;

namespace GTR.News.AdminWeb.Handler
{
    /// <summary>
    /// AdminLogin 的摘要说明
    /// </summary>
    public class AdminLogin : IHttpHandler
    {
        BackgroundUserBLL bll = new BackgroundUserBLL();
        public void ProcessRequest(HttpContext context)
        {
            //接受参数（用户名和密码）
            string name=context.Request["name"];
            string pwd = context.Request["pwd"];
            context.Response.ContentType = "text/plain";
            //调用Login方法
            int i = bll.Login(name, pwd);
            context.Response.Write(i);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}